class Human:
    def __init__(self, name, sex, age, phone_money, phone_brand, phone_battery, phone_screen, phone_max_time, score):
        self.name = name
        self.sex = sex
        self.age = age
        self.phone_money = phone_money
        self.phone_brand = phone_brand
        self.phone_battery = phone_battery
        self.phone_screen = phone_screen
        self.phone_max_time = phone_max_time
        self.score = score

    def send_message(self, message):
        print("{} 发送了短信：{}".format(self.name, message))


    def call(self, phone_number, time):
        if phone_number == "":
            print("请输入电话号码")
        elif self.phone_money < 1:
            print("话费不足，请充值")
        else:
            print("正在拨打 {}，请稍等...".format(phone_number))
            print("已拨通")
            if time <= 10:
                self.phone_money -= 1 * time
                self.score += 10 * time
            elif time <= 20:
                self.phone_money -= 0.8 * time
                self.score += 39 * time
            else:
                self.phone_money -= 0.65 * time
                self.score += 48 * time
